~F1:: {
    str := ""
    Loop 5
    {
        Sleep 50
        str:= str getClor()
    }
    A_Clipboard := str
}

getClor()
{
    MouseGetPos &MouseX, &MouseY
    Color := PixelGetColor(MouseX, MouseY)
    str := "(" MouseX "," MouseY ") == `"" Color "`"" 
    Return str
}
XButton2::
    {
        ;twox()
        global i:=0
        ;while(True)
        while(GetKeyState("XButton2", "P"))
        {
            ;threex()
            twox()
        }

    }

    XButton1::{
        SendInput "{s}"
        Sleep 50
        SendInput "{s}"
    }

    tp()
    {
        ToolTip "=========`n=========`n=========", 920, 752
    }

    twox()
    {
        i:=0
        while(GetKeyState("XButton2", "P")) { 
            c1 := PixelGetColor(930,844)
            if (c1 != "0xB9724D")
            {
                SendInput "{t}"
                SendInput "{f}"
            } else 
            {
                SendInput "{r}"
                color1 := PixelGetColor(1022, 679) ;5毒->不过遮罩
                color2 := PixelGetColor(1022, 678) ;5毒->过遮罩
                color3 := PixelGetColor(1056, 678) ;第二框框
                color4 := PixelGetColor(1056, 679) ;
                ; NO
                color5 := PixelGetColor(1014, 665) ; 0x355B22;5毒边界，证明这个 5是毒状态
                color6 := PixelGetColor(1048, 665) ; 0x355B22
                ;(1016,660) == "0x7AE644"(1016,660) == "0x7AE644"(1016,660) == "0x7AE644"(1016,660) == "0x7AE644"(1016,660) == "0x7AE644"
                if((color1 == "0x987998" || color2 == "0x837683") && color5=="0x2D4A1F") {
                    SendInput "{t}"
                    Sleep 150
                    SendInput "{f}"
                    Sleep 150
                }
                ;(1048,665) == "0x2D4A1F"(1048,665) == "0x2D4A1F"(1048,665) == "0x2D4A1F"(1048,665) == "0x2D4A1F"(1048,665) == "0x2D4A1F"
                if ((color3 == "0x837683" || color4 == "0x987998") && color6=="0x2D4A1F") 
                {
                    SendInput "{t}"
                    Sleep 150
                    SendInput "{f}"
                    Sleep 150
                }
            }
        }
        ToolTip
    }

    threex()
    {
        SendInput "{r}"
        Sleep 50
        SendInput "{t}"
        Sleep 50
        SendInput "{x}"
        Sleep 50
        c1 := PixelGetColor(978,848)
        if (c1 == "0x2A2428") {
            SendInput "{3}"
            Sleep 50 
        }

    }

    tpi()
    {
        f1 := PixelGetColor(1041,671)
        if (f1 == "0x30561F" ) 
        {
            ;ToolTip "!!!!DDD===", 920, 752
            tp()
            i:=1
        }
    }